Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.5k Posts
  • How to add XYPoint elements to LineSeries dynamically?

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • QT Get Current Geometry for pushbutton

    2
    0 Votes
    2 Posts
    1k Views
    p3c0P
    Hi, Is "geometry":http://doc.qt.io/qt-5/qwidget.html#geometry-prop what you are looking for ?
  • 0 Votes
    10 Posts
    4k Views
    H
    yes i could install qt on Windows! yet now I only use Windows for Gaming ^^ By the way i solved the problem other way.... I created a Custom-Context Menu and set the Size Attributes and other Design like Patterns via Stylesheets ;)
  • Qt and Microsoft Office ...

    3
    0 Votes
    3 Posts
    2k Views
    T
    OK, thanks for the feedback. Any other feedback welcome :)
  • Drag Drop Qt controls.

    7
    0 Votes
    7 Posts
    2k Views
    A
    Hi Sir, I have got the GUI portion covered. The issue i am having is to writing the xml file as WDDX packet xml format and reading it back in Qt Designer. Could you please suggest something?
  • Can I use QtCreator with PyQt5?

    5
    0 Votes
    5 Posts
    13k Views
    jerome_isAviableJ
    i see this for you (so answer is: yes, you can construct with QTDEsigner a UI and transform with pyuic5.. then use QTCreator possible too... you need to config it for do that): https://www.youtube.com/watch?v=wV_vLNG8S1I having fun...
  • 0 Votes
    6 Posts
    3k Views
    JKSHJ
    Hi, and welcome to the Qt Dev Net! I'm glad to hear you've found the solution. [quote author="Gladdyù" date="1422653004"]It could have deduced from this part of documentation, but still ownership of the data does not háve to imply that you're also responsible for the cleanup. bq. Sets the clipboard data to src. Ownership of the data is transferred to the clipboard. If you want to remove the data either call clear() or call setMimeData() again with new data. [/quote]With QObjects, that is exactly what it implies. See the "Object Trees & Ownership":http://doc.qt.io/qt-5/objecttrees.html article. In Qt, when Object X is said to take ownership of Object Y, or when it becomes the parent of Object Y, that means Object X is now responsible for deleting Object Y. In other words, a QObject only needs to be manually deleted if it doesn't have a parent.
  • Can't find ProgramData folder for windows.

    4
    0 Votes
    4 Posts
    2k Views
    hskoglundH
    Hi, I also tried Qt for that directory, but alas, you have to venture into the bowels of Windows: @ #include "shlobj.h" @ then: @ TCHAR szPath[MAX_PATH]; SHGetFolderPath(NULL,CSIDL_COMMON_APPDATA,NULL,0,szPath); QString sCommonAppData = QString::fromWCharArray(szPath); @
  • QTimer in a GUI application

    25
    0 Votes
    25 Posts
    10k Views
    SGaistS
    Just to be sure I'm understanding your code correctly: you are moving your QSerialPort instance to a thread and then using the blocking functions in your widget code ?
  • [Solved] Popup of QComboBox showing and immediately hiding

    5
    0 Votes
    5 Posts
    984 Views
    SGaistS
    So fooBar() accesses the database before to populate combo box model ?
  • Problem with SpinBox Alignment

    6
    0 Votes
    6 Posts
    3k Views
    E
    Hi Rondog, thanks for your reply... [quote author="Rondog" date="1422589181"]I tried this on my Mac. I was able to get a right alignment with a spin box (I am using Qt 5.4.0 not 4.8.x). Your example doesn't look like a standard style from Qt 4.8.x Maybe the problem is related to the style (QStyle) you are using? Something not implemented properly to handle a right aligned spin box?[/quote] I'm not using any Qstyles. I'm going from Designer (which generates the UI file) which is driven by Python using PyQt4. Though it's occurred to me that it is right-justified, it's just hard to tell with the size of the field. I'll have to play with that.
  • 0 Votes
    6 Posts
    57k Views
    JKSHJ
    [quote author="sunil.nair" date="1422609361"]Thak you. my issue is resolved.[/quote]You're welcome. Please edit your original post and add "[SOLVED"] to the title. [quote author="sunil.nair" date="1422609361"]Thak you. my issue is resolved. I have another question. How can I change the icon on executable application being displayed? [/quote]See the "documentation":http://doc.qt.io/qt-5/appicon.html In the future, please start a new thread for new questions.
  • Qt Creator giving me deployment.pri for a plain C project

    3
    0 Votes
    3 Posts
    2k Views
    M
    Yes, that's what I ended up doing. All is normal, now.
  • [Solved] QObject back to main thread

    11
    0 Votes
    11 Posts
    35k Views
    A
    (REMOVED POST) - Sorry I replied to a posted in the wrong tab of my web browser. LOL.
  • How to emit signal only once. (solved)

    7
    0 Votes
    7 Posts
    7k Views
    A
    I did not try that. Note that it doesn't remove the signal or the slot, it just disconnects the connection between the two. I would not call it a great implementation either. It is a bit of a trick, and it is not a cheap trick to pull off (creating a whole new QObject instance to just monitor a single signal-slot connection). It could be optimized of course to only ever use a single QObject instance to do the management of potentially multiple single-shot connections. But that was more work :) Note that with Qt 5, the implementation would be a bit different and cheaper. Because Qt 5 returns a QMetaObject::Connection instance when you call connect, you can just store that connection instance and use that to do your disconnect. If you have C++/11, you can also use a lambda to pull off this trick even cheaper. Something like: @ //this is untested, of course inline singleShotConnect(const QObject * sender, const char * signal, const QObject * receiver, const char * method) { auto connection = QObject::connect(sender, signal, receiver, method); if (connection) { //only disconnect if the connection worked QObject::connect(sender, signal, connection { QObject::disconnect(connection); }; } } @ Of course, you'd probably want to provide all the connect overloads. Perhaps you have to that manually, perhaps with a bit of template magic you can do it in one go. I do think that it would be nicer to just have a connection type singleShot, but a work-around like this would work as well. Edit: I have added a "suggestion":https://bugreports.qt.io/browse/QTBUG-44219 to add this to Qt.
  • [Solved] QStandardItemModel Multi Column Sort

    3
    0 Votes
    3 Posts
    962 Views
    W
    hello, tsss, how easy. thanks for the quick reply !
  • Multiple QSqlTableModels edited together in one transaction

    1
    0 Votes
    1 Posts
    787 Views
    No one has replied
  • QString linking error with visual studio 2013 ( nmake tool ) and Qt 5.4

    10
    0 Votes
    10 Posts
    4k Views
    raven-worxR
    [quote author="CroCo" date="1422607745"]Now it is working. Thank you so much. But where is the version of Qt that supports both versions x86 and x64?[/quote] You can run 32bit applications on a 64bit system but not vice versa. So in most cases you don't need to build a 64bit version, only when you know why you have to choose 64bit. In case you don't know, go with the 32bit version ;)
  • Working with Virtual Desktops for Linux?

    6
    0 Votes
    6 Posts
    2k Views
    SGaistS
    AFAIK, no, it's more something that should be handled by your window manager
  • QtWebEngine JS Bridge

    5
    0 Votes
    5 Posts
    6k Views
    T
    @Patrick: I have the same problem and it's still not clear how to port it to webengine. did you play with it and learned something ? if yes, could you please share. Thanks Marco