Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.4k Topics 456.4k Posts
  • QImageReader concerns

    2
    0 Votes
    2 Posts
    654 Views
    SGaistS
    Hi, AFAIK, the canRead function and what's under don't load the file content, it peeks and seeks through to get the information needed but that should be all.
  • [SOLVED] How to show branch/child indicator for QStandardItem

    4
    0 Votes
    4 Posts
    1k Views
    SGaistS
    Great ! Since you have it working now, please update the thread title prepending [solved] so other forum users may know a solution has been found :)
  • How to call a function from another cpp file

    21
    0 Votes
    21 Posts
    9k Views
    I
    Please, read books about C++ and Qt.
  • Output complaining about signals and slots that DO exist

    4
    0 Votes
    4 Posts
    1k Views
    P
    Thanks. I did two things that helped solve this problem. First I removed the variables from the code as suggested by JKSH. For a later slot I also changed a qintptr to an int because it said that qintptr was not a MetaObject. If I had needed to continue using a qintptr for whatever reasons, how would I make it a MetaObject?
  • Updated to Xcode 6.01, now my qt project has #include errors

    10
    0 Votes
    10 Posts
    3k Views
    K
    The final fix for this was to rename the 6.01 version of Xcode to XCode6 and reinstall XCode 5.1.1. I had to still screw around with the debugger settings before the debugger fired back up. Quite a pain. But it seems to be working now. I am guessing the upcoming release of Qt Creator coming will resolve the XCode 6/OSX changes?
  • Displaying a logo at a particular position

    4
    0 Votes
    4 Posts
    829 Views
    JeroentjehomeJ
    Hi, First of all, the QLabel doesn't have a setMask function, so that will fail. Set the mask on the Pixmap and that should work. Do you want to have a button above the icon (use vertical layout)? Of should the icon be the background of the button?? (use borderimage)
  • How to make dialog fixed height and width in qml app?

    1
    0 Votes
    1 Posts
    770 Views
    No one has replied
  • Linux Audio Mess and Qt

    3
    0 Votes
    3 Posts
    3k Views
    cybercatalystC
    A bit late, but checkout QJackAudio: https://github.com/cybercatalyst/qjackaudio
  • Filling up Username and Password automatically using WebView.

    3
    0 Votes
    3 Posts
    785 Views
    J
    [quote author="p3c0" date="1411638272"]Hi, Have a look at "findFirstElement":http://qt-project.org/doc/qt-5/qwebframe.html#findFirstElement and then after getting the QWebElement use setAttribute to set value as required.[/quote] Thanks it's very helpful for me :D
  • Is QPushButton the best choice for this situation?

    2
    0 Votes
    2 Posts
    532 Views
    p3c0P
    Hi, If click functionality(which QPushButton already has)is not required you could also use a QLabel.
  • How to reduce the size of QVBoxLayout

    4
    0 Votes
    4 Posts
    2k Views
    JeroentjehomeJ
    Hi, The layout will resize with the parent object. The widgets in the layout will resize accordingly. Only when your widgets are set to fixed sizes or limited size the layout will expand and 'empty' space will be shown. So how do you build up your parent widget? (MainWindow??).
  • How to replace line 's partial text of a text file

    2
    0 Votes
    2 Posts
    2k Views
    JeroentjehomeJ
    Hi, Very simple, make a temporary copy file and add the data you need added to it. Then remove the old file, rename the new file and your done! There are no possibilities to alter text in the middle of a file! How could you, think about it, the data is stored on a drive. The OS determines where, but there is no guarantee that data added to the file will fit on that exact location. Maybe there is an other file placed just after your file. Add a byte and then what? Place the last by somewhere else?? Nup, not possible. Make a deep copy to a temp file, add data and rename.
  • Is there any add-on for XCode on mac like for VisualStudio on windows?

    2
    0 Votes
    2 Posts
    618 Views
    SGaistS
    Hi, No add-on, the rest is explained "here":http://qt-project.org/doc/qt-5/qmake-platform-notes.html#creating-and-moving-xcode-projects
  • MapFromItem equals to item->scenePos() ?

    1
    0 Votes
    1 Posts
    381 Views
    No one has replied
  • Installation of Qt Creator (Any version)

    27
    0 Votes
    27 Posts
    7k Views
    J
    if you want develop using native c++ it's better to use from an c++ IDE which is simplest from Qt Creator... We download, install and use from Qt because of it's useful libraries... i hope you can find best answer :)
  • How to check internet connection in Qt

    4
    0 Votes
    4 Posts
    4k Views
    J
    of course saravanavelu.. There are some solution in this link i hope be useful :) http://ubuntuforums.org/showthread.php?t=1803980
  • New installation of QT5 doesn't work --> cannot find -lGL

    7
    0 Votes
    7 Posts
    5k Views
    M
    Lubuntu 14 and Qt5, installing libglu1-mesa-dev fixed this issue too
  • 0 Votes
    2 Posts
    890 Views
    D
    int QDialog::result() const
  • QtCreator SSH sha1-96

    1
    0 Votes
    1 Posts
    589 Views
    No one has replied
  • Copy files as part of build?

    2
    0 Votes
    2 Posts
    807 Views
    F
    OK, Answering my own question. You can (apparently) create a series of commands using QMAKE_POST_LINK. QMAKE_POST_LINK += $$quote(mkdir -p ./apps $$escape_expand(\n\t)) QMAKE_POST_LINK += $$quote(cp ./../../macApps/gs ./apps/gs $$escape_expand(\n\t)) QMAKE_POST_LINK += $$quote(cp ./../../macApps/gxps ./apps/gxps $$escape_expand(\n\t))