Home | History | Annotate | Download | only in qt
      1 <html>
      2 <head>
      3 <style>
      4     #spacer {
      5         width: 100%;
      6         height: 1000px;
      7         background-color: yellow;
      8     }
      9 </style>
     10 </head>
     11 <body>
     12 
     13 <p>
     14     Scroll the page, ensure that the two labels move nicely along with the rest of the document.
     15 </p>
     16 
     17 <div>
     18 <object type="application/x-qt-plugin" classid="alien_QLabel" name="label1" height="30"></object>
     19 </div>
     20 
     21 <div>
     22 <object type="application/x-qt-plugin" classid="QLabel" name="label2" height="30"></object>
     23 </div>
     24 
     25 <div id="spacer"><p>&nbsp;</p></div>
     26 
     27 <script>
     28 document.label1.setText("Label one");
     29 document.label2.setText("Label two");
     30 </script>
     31 </body>
     32 </html>
     33