Skip to content
  • 144k Topics
    722k Posts
    SMF-QtS
    @SMF-Qt Having read some Qt5 solutions for this problem, and the associated Android devlopment and Qt6 Jni information I have come up with this solution for setting the screen in Landscape mode and stopping the screen timeout. The landscape bit works but the screen lock only seems to work on the simulator. The code is running through the appropriate path in all cases as indicated by the flags a,b,c,d which I display on the screen of my app (all 1's) as a debug aid: [image: 1d204d95-0bf9-49f1-ac2b-b9f9be4d06c5.png] Sorry for using a png image but the stupid spam filter would not let me post the actual code!!!! Can anyone see any mistakes in what I have written that stop it working on real hardware (could it be a permissions issue)?
  • Jobs, project showcases, announcements - anything that isn't directly development
    4k 23k
    4k Topics
    23k Posts
    DeSGuND
    @JonB read post more once and did through qml thanks an answer
  • Everything related to designing and design tools

    127 383
    127 Topics
    383 Posts
    R
    I see this is an old thread and I see several unresolved threads on this topic. I'm leaving this incase it helps someone else who ends up here. The solution was twofold for me. Go to File > Export Project and select Enable Python Generator. This will create a main.py. Make sure you pip install PySide6-DS Hope this helps someone.
  • Everything related to the QA Tools

    77 213
    77 Topics
    213 Posts
    J
    Hello i am using WinCC OA to develop a qt application. WinCC OA has some custom elements which cannot be detected by squish for example a polygon. Squish is now not able to detect this element with the picker. I know the name of the element but as it is of WinCC OA internal i do not know the type: waitForObject( {"container": "container", "name": "POLYGON1","type": "???","visible": 1} ); How do i get this information? And what to use if unknown? Is there any other way? I mainly just need to click this element. Thanks a lot
  • Everything related to learning Qt.

    382 2k
    382 Topics
    2k Posts
    Ash_QtA
    Hey! Thanks for taking the time to tackle the QML for Beginners challenges! You are right that States could be a good application here to toggle between the business card's 'front' and 'back'! Well done in exploring and implementing this :) One way of stopping the flickering you mentioned is to bind the minimumHeight and maximumHeight properties of the Window to the business card ratio we want: minimumHeight: width / 1.586 maximumHeight: width / 1.586 You can learn more about those here
  • 2k Topics
    13k Posts
    S
    @SGaist i have not come across QIdentityProxyModel yet, I will try that. thanks just a snippet of what i am doing and is working by subclassing AbstractTableModel. So the row color is dependent on 2 columns. its origin and its severity. QColor EventsModelByDate::eventSeverityTextColor( int severity, QString origin ) const { switch ( severity ) { case 4: /// Info if ( origin == "FRM" || origin == "HET" || origin == "IRS" || origin == "SCS" || origin == "PLG" ) return QColor( 0, 40, 120 );//, Qt::ForegroundRole ); else if ( origin == "TRM" || origin == "TRS" ) return QColor( 80, 136, 180 ); else if ( origin == "VPP" || origin == "DPP" || origin == "PTP" ) return QColor( 80, 136, 180 ); else return QColor( 0, 0, 0 ); break; case 8: /// Warning return QColor( 145, 70, 20 ); break; case 16: /// Error return QColor( 245, 0, 0); break; default: /// Info return QColor( 0, 0, 0 ); break; } }
  • 4k Topics
    18k Posts
    A
    Bonjour à tous, Ce matin, et je ne sais pour quelle raison, lorsque je lance mon interface développée sur QtCreator C++, en mode debug, celle-ci ne se lance pas parce qu'il y a des points d'arrêt, et si je les retire, l'interface se lance, mais dès que j'en mets un, elle s'arrête directement. J'ai beau tout couper, éteindre le PC, rien n'y fait, toujours la même chose. J'ai vu un post sur le sujet disant qu'il fallait mettre à jour Qt, mais pourquoi ? Puisqu'avant ça fonctionnait. Et si je n'ai pas le choix de la mise à jour, comment faut-il faire ? Merci d'avance pour vos réponses
  • This is where all the posts related to the Qt web services go. Including severe sillyness.
    1k 10k
    1k Topics
    10k Posts
    SGaistS
    @RokeJulianLockhart to the best of my knowledge, no. The first release of Discourse was in 2014 and the forum is several years older than that.