Navigation

    Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    • Unsolved
    1. Home
    2. Tags
    3. qt5.6
    Log in to post

    • UNSOLVED QNetworkAccessManager post() not sending body
      General and Desktop • qt5.6 networkaccessma linux desktop • • candy76041820  

      5
      0
      Votes
      5
      Posts
      65
      Views

      @JonB It's an internal (private) distro, based on som ancient version of Ubuntu, I guess. Preinstalled on all of thier machines, so I have to stick to that. (Hell they even have Qt4.8 preinstalled sxs!)
    • SOLVED problem opening one instance of every Widget(form) and deleting it ...
      General and Desktop • qwidget qt5.6 release deletelater form • • Proton Phoenix  

      9
      0
      Votes
      9
      Posts
      270
      Views

      @JonB it works bro thank you problem fixed when i tried this before it doesn't open the window at all ... just flashing but now i understand why it's working Thank you <3
    • SOLVED Absurd QT File Handling Issue(QFile)
      C++ Gurus • qt5.6 c++ qt qfile qfiledialog file read • • Sabhya Sood  

      11
      0
      Votes
      11
      Posts
      916
      Views

      @JonB Thanks for your insight. I did as you suggested and found one of my local variable's address a nullptr(though not sure where it came from). I changed a few lines of code and apparently, my code works fine now. @Christian-Ehrlicher @J-Hilk thanks!
    • UNSOLVED How to use qt webassembly in qml application?
      Qt for WebAssembly • qt5.6 webassembly • • Niushaa  

      7
      0
      Votes
      7
      Posts
      485
      Views

      @lorn-potter I have checked it in qt 5.15 with em 1.39.16. but still I have same problem.
    • UNSOLVED Write Scheduler to run different pointer to member
      General and Desktop • signal & slot qt5.6 timer • • Max13  

      7
      0
      Votes
      7
      Posts
      357
      Views

      @chehrlic said in Write Scheduler to run different pointer to member: I still don't see why a QTimer isn't enough - it can be started, stopped, can be run once or more, can execute any function given with any kind of parameters, even a lambda, ... there is nothing your description requires you to store the PMF by your own. But maybe QMetaMethod is something you can take a look on Well, like you said, QTimer alone could be enough at first sight, but if I want to "manage" them, or even organize them, I need a wrapper with some human-readable data. That's when the Task class comes handy. This is my current Task class, as of today: class Task : public QObject { Q_OBJECT public: typedef std::function<bool(QString&)> Function; private: QString m_name; Function m_function; QDateTime m_firstExec; int m_frequency; const Task *m_depends; QDateTime m_lastExec; bool m_lastStatus; QString m_failedReason; QMetaObject::Connection m_dependCnt; public: // Constructors/Getters/Setters signals: void starting(); void finished(bool status); public slots: void schedule(); void exec(); }; I'm stuck with a single type of Function stored (bool (QString&)), with the m_depends property I can wait for another Task to emit finished to effectively call schedule() (when I call schedule(), if there is a dependency, the task waits for the dependency's finished() to be emitted, then it calls schedule() on itself. When schedule() doesn't have to wait for anything, it calls QTimer::singleShot() with exec() as the slot, which itself calls the internal m_function stored. So I'm using a QTimer in the end, but with some extra properties. Except being stuck with a single type of function (I'm storing lambdas for now), I'm pretty happy with that, moreover if I need to build a widget showing the status of each of them. I will look at QMetaMethod also, thanks for your suggestions
    • UNSOLVED How to ensure the QFrame title is scaled automatically with the window's text size scaling?
      General and Desktop • qwidget qt5.6 qframe title bar highdpi • • johnyang  

      6
      0
      Votes
      6
      Posts
      1110
      Views

      @SGaist I tried the Qt 5.12.6 and it did the trick! Thanks. But interestingly, the title of the main application is no longer scaled by "Make text bigger" setting but the dockwidget ones does. I guess that there is an intention not to scale the main title. "Make everything bigger" setting does scale everything properly now except the titlebar height of only the main application looks not enough for the enlarged font size. I will give qt5.14 a try as well.
    • UNSOLVED Programme QT ne reconnait les drivers MYSQL
      French • qt5.6 sqlite yocto drivers driver plugins • • nikoPol  

      6
      0
      Votes
      6
      Posts
      744
      Views

      @nikoPol said in Programme QT ne reconnait les drivers MYSQL: Il n'y a pas d'autre moyen Non, il faut compiler les drivers pour votre cible avec les paramètres adéquats, soit directement à partir de Yocto, soit "à la main", à partir des sources de Qt. Peut-être que ce lien pourra vous être utile: https://www.udoo.org/forum/threads/solved-how-to-use-sql-model-with-qt5-layer.5136/ Désolé, je n'ai que des connaissances de base concernant Yocto... Et ca fait bien 3 ans que je ne l'ai plus mis en oeuvre!
    • UNSOLVED How to remove Unknown Publisher from User control Access dialog box?
      Installation and Deployment • c++ qt5.6 installer maintenance binarycreator • • Yash001  

      2
      0
      Votes
      2
      Posts
      1404
      Views

      You need to sign your installer and app executable using a certificate. You can get such cert. from many companies, just Google for it. It costs between 100-400 US dollars, certificate is usually valid for a few years (1-3). Once you have the certificate, you can sign any exe with: signtool.exe sign /t http://timestamp.digicert.com /f yourCertFile.pfx app.exe And then verify the signature with: signtool.exe verify /pa /v app.exe The signtool.exe is part of Windows SDK, which you can get from Microsoft, free of charge.
    • UNSOLVED How can I detect the addOperation error in installer Script?
      General and Desktop • qt5.6 installer component installer error addoperation • • Yash001  

      1
      0
      Votes
      1
      Posts
      348
      Views

      No one has replied

    • UNSOLVED Change button color
      General and Desktop • qt5.6 • • neko lie  

      4
      0
      Votes
      4
      Posts
      1873
      Views

      If the question is "How to change a button's color?" the answer is probably something like myButton->setStyleSheet("background-color: red;"); If the question is how to "How to change the button's color WHEN some conditions" the answer could be [Somewhere inside a method] if (conditionsMet) { Q_EMIT(ChangeButtonColor()); } [somewhere in constructor, most likely] connect(this, &MyClass::ChangeButtonColor, this, [m_button](){ m_button->setStyleSheet("background-color: red;"); }); This is one way to connect signal/slot to actually change the button's color when some conditions are met. But the condition can be in another class than the one owning the button, the signal can be emitted by another component and not inside a method, and the code that changes the color can be in a method instead of a lambda. What might be useful would to copy/paste some code to help you more specifically. EDIT: @J.Hilk 's solution, tho a bit complicated for a beginner, is much more robust and pro. It depends on how serious your project is and if you have sufficient knowledge in Qt.
    • UNSOLVED Qt5.6.3 Build issue with ARM64
      Mobile and Embedded • qt5.6 embedded linux qtbase aarch64 arm64 • • Jaganteki  

      7
      0
      Votes
      7
      Posts
      2459
      Views

      AFAIK, the BPI is very close to the Raspberry Pi, you should take a look at this wiki entry. By the way, why are you trying to build an outdated version of Qt ? The current LTS is the 5.9 series with 5.12 around the corner.
    • UNSOLVED Is it possible to show video
      General and Desktop • qt5.6 • • another_one  

      2
      0
      Votes
      2
      Posts
      335
      Views

      @another_one You should start here: http://doc.qt.io/qt-5/multimediaoverview.html
    • UNSOLVED Build and run problems with qtquick
      General and Desktop • qt quick qt5.6 build error • • Linuxfluesterer  

      18
      0
      Votes
      18
      Posts
      3768
      Views

      @Linuxfluesterer No it's not the size of your hard drive, it's the size of the RAM allocated to that machine and how much it uses for /tmp. So do a df -h and you can post the output or at least see how much space you have on tmp. If it is less than the 1.4gb needed for the install, up it. Or as I suggested temporarily point /tmp to a hard disk if you don't have the ram for a bigger /tmp.
    • UNSOLVED Qt: “ResizeEvent” to receive the size of the window and set it to the size of a QLabel
      General and Desktop • c++ qtcreator qt5.4 qt5.6 c++ qt • • hassene  

      4
      0
      Votes
      4
      Posts
      1294
      Views

      @hassene Hi and welcome Is there a reason you simply dont use a layout ? To make it autofollow the size of window ? if you place a QLabel on a form ( mainwindow.ui) , right click somewhere on empty form, and select Layout menu and select layout, the label will follow maniform. https://doc.qt.io/qt-5.10/examples-layouts.html
    • UNSOLVED QSqlite query to excel file specific layout
      General and Desktop • qt5.6 qsqlite excel • • TMJJ001  

      1
      0
      Votes
      1
      Posts
      437
      Views

      No one has replied

    • UNSOLVED Issue with setHorizontalScrollBarPolicy in MDI area.
      General and Desktop • qt5.6 c++ qt scrollbar scrollarea mdiarea • • Yash001  

      13
      0
      Votes
      13
      Posts
      3228
      Views

      @mrjj Thakn you.
    • UNSOLVED Can we provide animation for Window Redirection in Qt C++?
      Mobile and Embedded • qtcreator qt5.6 widgets animations main window • • Akshay Kashyap  

      2
      0
      Votes
      2
      Posts
      793
      Views

      Hi and welcome to devnet, You have to give more information about your setup. What device are you going to use ? What version of Qt ? What Linux distribution ? What graphical backend ?
    • SOLVED Running Python script from Creator project
      General and Desktop • qtcreator qt5.6 cpp • • user241996  

      10
      0
      Votes
      10
      Posts
      4751
      Views

      @SGaist Your comment was very helpful. I checked the contents by printing them and saw that when I called the process, the file was still being written (since I write a JSON file from the GUI). So I added one more line QFile.close() and now the python script is called only after JSON gets written from the GUI. Now it is running fine.
    • UNSOLVED Qt5SerialBus.lib(qmodbusdevice.obj) already defined in mainwindow.obj
      Installation and Deployment • build qt5.6 linker qt5serialbus already defined • • userprogrammer  

      2
      0
      Votes
      2
      Posts
      820
      Views

      Hi, Please give the complete error log.
    • SOLVED Problm with QTextEdit and accents
      General and Desktop • qt5.6 qtextedit encoding • • Alain38 0  

      2
      0
      Votes
      2
      Posts
      915
      Views

      @Alain38 OK: It seems in fact that wat just a problem with the console. By sending the text to the URL (using QUrlQuery for encoding) I have the text with the accents.
    • UNSOLVED QOpenGLTexture and shader?
      General and Desktop • qt5.6 qopengltexture shaders • • Alain38  

      3
      0
      Votes
      3
      Posts
      1810
      Views

      Dear Alain38, Did you make it finally work? I got stocked with the exact same problem.
    • UNSOLVED cdb 64bit debugger crashes with gui application
      General and Desktop • qt5.6 msvc2015 • • adlag  

      1
      0
      Votes
      1
      Posts
      485
      Views

      No one has replied

    • UNSOLVED How to call dotNet functions from C++/Qt by ActiveQt
      General and Desktop • qt5.6 activeqt • • alizadeh91  

      1
      0
      Votes
      1
      Posts
      459
      Views

      No one has replied

    • SOLVED how to predefine items in vector of qcombobox
      General and Desktop • qt5.6 combobox vector • • vasu_gupta  

      2
      0
      Votes
      2
      Posts
      938
      Views

      Hi Just create a function and use that instead of new directly QComboBox * MakeDefaultCB(QObject *Parent) { QComboBox * cur= new QComboBox (Parent); cur->addItem(QString("defect 1")); cur->addItem(QString("defect 2")); ... return cur; } dbox1.push_back(MakeDefaultCB(this));
    • UNSOLVED How to set dynamic Property for QJSEngine
      General and Desktop • qt5.5 qt5.6 qjsengine script qjsvalue • • NewMoon  

      3
      0
      Votes
      3
      Posts
      1297
      Views

      @NewMoon see QTBUG-38181 It's a known limitation of QJSEngine. If you can, switch to QScriptEngine (QML).
    • UNSOLVED QT stops with segmentation error on main function
      General and Desktop • qt5.6 qt5.7 windows10 qt5.8 • • rdsivd  

      2
      0
      Votes
      2
      Posts
      814
      Views

      Hi and welcome to devnet, What's dxftoqet3db.h ? Where does it come from ? Does it use an external .dll ?
    • SOLVED VideoControl Issues
      QML and Qt Quick • qt5.6 qt5.8 • • klyons99  

      9
      0
      Votes
      9
      Posts
      4338
      Views

      I actually switched to QtAV for video output, and so far it's been working flawlessly under standard QT App setup. If I could ever get the QML/Quick setup to acknowledge it's been installed I'd test that end of things, but for now it's accomplishing exactly what I need. Thanks again for the assistance!.
    • SOLVED Qt 5.6.2 Windows XP
      General and Desktop • qt5.6 windows xp timezone • • lolopolosko  

      9
      0
      Votes
      9
      Posts
      6652
      Views

      @Rondog Ah.. Sorry. I was careless. I read source and saw that #ifndef Q_OS_WINRT #define QT_USE_REGISTRY_TIMEZONE 1 #endif All be ok and work correct on Windows XP. Sorry guys
    • UNSOLVED Windows Defender
      Brainstorm • qt5.6 virus warning • • jocala  

      8
      0
      Votes
      8
      Posts
      3212
      Views

      The binaries may scan fine but the behavior of the program could be the trigger. If the program does things that are suspicious it will get more attention (especially a new program). Just to make sure I would build Qt from source or only use binaries from a trusted source with a checksum hash that you can verify. This is a big concern I have when moving between Windows computers. I have not had problems but I always keep in the back of my mind that everything might be deleted in the blink of an eye and snowball into a bad day - bleh!
    • UNSOLVED Qt 5.6.1 from online installer and GStreamer on (K)Ubuntu 16.10 - MediaPlayer sound issue
      General and Desktop • qt5.6 qtmultimedia gstreamer mediaplayer online installe • • Larpon  

      1
      0
      Votes
      1
      Posts
      915
      Views

      No one has replied

    • UNSOLVED ارسال عکس گرفته شده از Qimage به کیو ام ال
      Persian • qml mysql qt5.6 • • MrErfan  

      1
      0
      Votes
      1
      Posts
      1180
      Views

      No one has replied

    • UNSOLVED Native Menu bar on macOS
      General and Desktop • qt5.6 mac os • • sandy.martel23  

      9
      0
      Votes
      9
      Posts
      3979
      Views

      https://bugreports.qt.io/browse/QTBUG-57072
    • SOLVED how to parent qpainter (code) to QTabWidget (Design Mode)
      General and Desktop • qtablewidget qpainter qt5.6 qmainwindow parent • • pauledd  

      13
      0
      Votes
      13
      Posts
      6113
      Views

      @pauledd :) class MyWidget : public QWidget << yes that is subclassing :) Also, a widget can only paint on it self. its not possible to paint on other widget from inside a paintevent. Thats why the first sample didnt work. You asked painter to paint on tab from inside mainwindows paintEvent :) I guess you already found out but its just to make clear for other readers.
    • Unhandled exception using Qt53DRenderd.dll in VC 2013 proj
      General and Desktop • c++ qt3d qt5.6 • • Poorti  

      7
      0
      Votes
      7
      Posts
      2414
      Views

      @Neosw Thanks a lot!! It seems there was some kind of bug in Qt5.6 which stopped the model from rendering. I updated to Qt5.7 and it worked! :)
    • UNSOLVED QtWebEngine problem allow camera Qt5.6
      QtWebEngine • qt5.6 qtwebengine webengine webengine cam • • Cleiton Bueno  

      2
      0
      Votes
      2
      Posts
      1194
      Views

      In my case this function works: onFeaturePermissionRequested: { console.log("onFeaturePermissionRequested"); webEngineView.grantFeaturePermission(securityOrigin, feature, true); } Tested on Qt 5.6 and Qt 5.7 on Desktop and Embedded
    • UNSOLVED Can't grab image of WebView on Android
      Mobile and Embedded • qml android qt5.6 webview qt5.7 • • arthurwozniak  

      3
      0
      Votes
      3
      Posts
      1475
      Views

      @raven-worx Thank you, it's cleart to me now. One more question - is there any possibility of grabing image of webview on android excent taking screenshot and cropping it? I know this solution is not ideal, but can't rewrite whole app and its UI logic now.
    • UNSOLVED Error - Build Android APK Failed - mergeDebugResources FAILED
      Installation and Deployment • android qt5.6 • • Mathan M  

      1
      0
      Votes
      1
      Posts
      1182
      Views

      No one has replied

    • SOLVED Material design in standard windows application
      General and Desktop • qt5.6 style • • km2442  

      3
      0
      Votes
      3
      Posts
      1120
      Views

      Thank you for answer :)
    • UNSOLVED How to use TagLib into my Qt c++ Project
      General and Desktop • qt5.6 metadata taglib • • Punit  

      5
      0
      Votes
      5
      Posts
      4614
      Views

      Since your on Linux, why not install the taglib devel package from your distribution ?
    • SOLVED rpi3 device missing
      Installation and Deployment • cross compile qt5.6 raspberry pi • • Mark81  

      10
      0
      Votes
      10
      Posts
      7463
      Views

      Here is the catch you have to use arm-linux-gnueabihf-'' instead of arm-linux-gnueabihf. @SGaist thanks for your help