Navigation

    Qt Forum

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

    • SOLVED Fonts too small with display scaling after Windows update
      General and Desktop • qt 5 font size hidpi windows 11 • • SimonSchroeder  

      6
      0
      Votes
      6
      Posts
      141
      Views

      Well, my research checks out, but my solution was still wrong. The solution worked on my computer, but it was not right on the next computer. Turns out, it was a case of "did you try to turn it off an on again?": I didn't restart my computer after switching the primary monitor in Windows. This is the real solution!
    • SOLVED Module "QtMobility.gallery" is not installed
      Installation and Deployment • qml android qt 5 qtmobility • • qAminzzz  

      21
      0
      Votes
      21
      Posts
      731
      Views

      @jsulm thank you so much it worked with these code: function: void searchPaths(QVariant path) { QStringList files; // add files to this ( paths ) QStringList filter; // mp4 files filter filter << "*.mp4"; // add filter qInfo("-----"); QDirIterator dir(path.toString(), filter, QDir::Files, QDirIterator::Subdirectories); // get all files in directory while (dir.hasNext()) { qInfo() << dir.next(); files << dir.next(); // } } use: searchPaths("enter path here") now i can sleep easy. thanks
    • SOLVED Auto line-break with QLabel within QTableWidget
      General and Desktop • qtablewidget qlabel qt 5 wordwrap • • silverfox  

      3
      0
      Votes
      3
      Posts
      580
      Views

      @ChrisW67 Thanks! It work like a charm. For the reason to why I was using QLabel, well I'm mostly testing for stuffs. I'll switch it up later.
    • SOLVED Getting datas from queue to series
      General and Desktop • chart qt 5 queue • • deleted286  

      5
      0
      Votes
      5
      Posts
      187
      Views

      @JonB Thank you, it works
    • UNSOLVED qt.qpa.xcb: could not connect to display AND Failed to create OpenGL context for format QSurfaceFormat
      Installation and Deployment • deploy qt 5 • • johnyboy  

      8
      0
      Votes
      8
      Posts
      2936
      Views

      if you dont have any windows manager running then it will be an issue for xcb. Yes, it looks like @mrjj is right here. However, you could still run the Qt app in the RPi device and make it display on another machine if you connect via SSH with X Forwarding enabled. $ ssh -X user@RPi /path/to/your/Qt/app -platform xcb
    • UNSOLVED How to analyze a KIT environment variable
      Mobile and Embedded • embedded linux creator qt 5 unix • • Michael65589  

      8
      0
      Votes
      8
      Posts
      383
      Views

      @hskoglund said in How to analyze a KIT environment variable: Hi, in a .cpp file you can use getenv(), like this: QString target = getenv("TARGET"); Or qEnvironmentVariable which returns a QString.
    • UNSOLVED Understanding Logic of a given QT function
      General and Desktop • c++ widget qt 5 paint event • • Jokerking  

      7
      0
      Votes
      7
      Posts
      317
      Views

      @Jokerking Well which part ? It loops over the full area , minus the area used for scrollbar for r (float i = 0; i < widthMinusScrollbars; i += tickSize, tickCount++) { It advances ticksize pr loop every 5 tick count size_t length = tickCount % 5 ? shortTickLength : longTickLength; it shows a long tick. then at every 10 tick ( i think) it draws the some text. Has a bug there as value = i * *tickSize / ratio; seems very odd to me. Then it draw some image.
    • UNSOLVED how to statically compile Qt using MinGW compiler and SSL support
      Installation and Deployment • qmake openssl static build ssl qt 5 • • CybeX  

      4
      2
      Votes
      4
      Posts
      566
      Views

      i am facing the same nightmare. it's 2weeks i'm stuck tryin' to obtain my static +openssl build and...no way. No issues compiling without openssl support. Any progress on that? Seems that nobody wants to help :(
    • SOLVED Detecting sort completed on QTableWidget
      General and Desktop • qtablewidget qt 5 sort • • james b-s  

      7
      0
      Votes
      7
      Posts
      537
      Views

      Thanks that worked
    • UNSOLVED How do deal with external changes to a model
      General and Desktop • qt 5 models qt widget views columns • • Folling  

      4
      0
      Votes
      4
      Posts
      230
      Views

      An update on this from my side: My initial approach wasn't flawless, as @VRonin pointed out, because QAbstractItemModel::columnCount didn't return the appropriate values. I've fixed this, by not immediately passing the new count after inserting the elements to a list, of which the size was used, but instead have the model save exactly how many categories it currently accounts for, so the connection looks like this: connect(item_registry.get(), &item_registry::category_added, [this](int position, QSharedPointer<category>) { beginInsertColumns(QModelIndex{}, position, position); _current_category_count++; endInsertColumns(); }); and likewise columnCount: int item_model::columnCount(QModelIndex const&) const { if(!_register) { qCritical() << "Item-model didn't have a register"; return 0; } return 1 /* name */ + _current_category_count; }
    • UNSOLVED Qt Testing on Android
      Mobile and Embedded • android qt 5 test test automation • • francescmm  

      2
      0
      Votes
      2
      Posts
      592
      Views

      Hi, IIRC, you can't directly do that. However, there where some scripts in the qtqa repository to run the tests in the CI, you might be able to leverage that. Hope it helps
    • SOLVED Show camera footage on widget and Send the video out on udp port
      General and Desktop • camera qt 5 udp video out • • gsharma  

      9
      0
      Votes
      9
      Posts
      3213
      Views

      @gsharma Ok, I forgot to mention my test environment, sorry about that. Well, maybe it's a good reason to update your Qt version... Best regards.
    • UNSOLVED Resizing QMainWindow and QDialog
      General and Desktop • qmainwindow resize python3 windows10 qt 5 • • Ocram10  

      7
      0
      Votes
      7
      Posts
      2864
      Views

      @Fuel the exemples in pyqt-master do it automatically but i don't understsnd what event or property they use
    • Qt proyect 4.8 mix with Qt 5.5
      General and Desktop • c++ qt qt 5 qt 4.8 • • Arturo Pablo R  

      5
      0
      Votes
      5
      Posts
      1367
      Views

      @SGaist said: QNetworkAccessManager. ok, i know by Qjson (but is for a 3rd and i preffer use the official) i forget the existence of QNetworkAccessManager.
    • UNSOLVED How to replace the default property in qt quick?
      QML and Qt Quick • qml qt quick qt 5 • • Accelerated  

      1
      0
      Votes
      1
      Posts
      475
      Views

      No one has replied

    • SOLVED updating rows in QStandardItemModel
      General and Desktop • listview qt 5 • • Shawny  

      5
      0
      Votes
      5
      Posts
      5225
      Views

      Works perfectly. Thank you very much. I previously used appendRow for updating rows but it didn't work as I wanted so tried setItem. But the main source of problem was creation of new models at every button push. Thank you for pointing it @SGaist and @mrjj
    • UNSOLVED Drawing a rectangle selection box on QImage using Mouse?
      Mobile and Embedded • qt 5 mouseevent rectangles • • MarKS  

      2
      0
      Votes
      2
      Posts
      3271
      Views

      Hi, QRubberBand might be of interest in your case. Hope it helps
    • UNSOLVED Qt (QML) android black screen when I run app on device
      Mobile and Embedded • android deploy qt 5 • • musimbate  

      3
      0
      Votes
      3
      Posts
      2722
      Views

      Thanks for the reply ,will certainly try the QtSpalshScreen thing when I get on the machine with the proper environment.I have noticed that when you start a new android project with Qt creator the project just runs fine. It is only when I import an external project in my instance of Qt Creator that the problem occurs.I decided to just learn a few basics on android native development ,deal with problems in the native environment ,and hopefuly it will be easier to deal with these on the Qt side of things.
    • UNSOLVED Cross-compile Qt5 to Beaglebone
      Installation and Deployment • linux cross compile cross-compile qt 5 beagleboard • • Kiji  

      4
      0
      Votes
      4
      Posts
      3461
      Views

      Please try to go through these steps : Chapter 7 and this Chapter 11
    • Convert Hex To Binary using QByteArray class
      General and Desktop • qbytearray qt 5 binary format hex format • • Arshia  

      2
      0
      Votes
      2
      Posts
      1999
      Views

      Hi and welcome to devnet Check out fromHex
    • Got VNC platform plugin working on Qt 5
      General and Desktop • qt 5 vnc • • ganeshv  

      10
      1
      Votes
      10
      Posts
      14259
      Views

      @Julien-C said in Got VNC platform plugin working on Qt 5: @ganeshv Hi ganesh, Do you plan to bump your version of websocket based VNC on top of official Qt VNC plugin? It would be great because it's a great feature to get rid of any specific software to access embedded screenless device. +++ And the README also states that display=<num> VNC display number. Server listens to port 5900 + <num> Default: display=0 That's a very useful feature on hosts that also run a VNC server (e.g. any Mac with screen sharing turned on) and thus already have port 5900 in use. Or simply if you want to be able to run multiple applications over VNC.
    • Qt application with encrypted database
      General and Desktop • database qt 5 encryption • • 4j1th  

      3
      0
      Votes
      3
      Posts
      1134
      Views

      @Leonardo I think it's for *nix systems, I want it in windows
    • guh - smart home server written in Qt
      Announcements • qt 5 server automation smart home • • T-mon  

      1
      0
      Votes
      1
      Posts
      878
      Views

      No one has replied

    • Qt Signal not Emitting on Second Time
      General and Desktop • signal slot qt 5 • • haris123  

      4
      0
      Votes
      4
      Posts
      2016
      Views

      Are you sure the signal isn't getting emitted or is it a getting emitted but the sendmail object isn't picking it up? My guess is your send mail object is doing something (locked up and never going back to the event loop). So it is never receiving that second message since it never gets back to the event loop. Don't know for sure without seeing the code for it, but just something I've noticed in thread programming with Qt. You could gdb to break into the application and see what your thread is doing. If it isn't in processEvents() that is probably the issue. Oh and one more thing, you can easily test the emitter by create a fake sendmail object with that same slot, then just have it write to the console when it sees that signal. That way you know if is doing nothing but writing to the console and exiting the slot so there won't be any hang ups. My guess is it will work and that your problem lies in the sendmail object. [edit]: added more ideas :)
    • Qt cross-compilation with DVSDK - undefined reference
      Mobile and Embedded • cross compile embedded linux qt 5 • • alexey.petrenko  

      1
      0
      Votes
      1
      Posts
      771
      Views

      No one has replied

    • QT 5.4 - Mouse , Kayboard , touch not work on arm device
      Mobile and Embedded • qt 5.4 static qt 5 touchscreen tslib linuxfb mini210s • • lamp  

      3
      0
      Votes
      3
      Posts
      1912
      Views

      add -tslib and recompile qt and chart example but not solved ! ./configure -prefix /opt/installed/arm/QtEmbededd-5.4-static-tiny210/ -opensource -confirm-license -no-xcb -xplatform linux-arm-gnueabi-g++ -nomake examples -feature-THREAD -feature-CONCURRENT -feature-SOUND -feature-EFFECTS -no-openssl -lpthread -optimized-qmake -no-cups -qt-zlib -static -qt-libjpeg -qt-libpng -qt-sql-sqlite -qpa linuxfb -linuxfb -tslib export TSLIB_FBDEVICE='/dev/fb0' export TSLIB_TSDEVICE=/dev/touchscreen-1wire export TSLIB_PLUGINDIR='/usr/lib/ts' export TSLIB_CONFFILE='/etc/ts.conf' export TSLIB_CALIBFILE='/etc/pointercal' export TSLIB_CONSOLEDEVICE='none' export TSLIB_TSEVENTTYPE='INPUT' export QT_DEBUG_PLUGINS=1 cat /dev/touchscreen-1wire | hexdump 0000000 0fff 0fff 07c6 8629 07c5 8626 07c5 8626 0000010 0fff 0fff 0966 85bb 096c 85b9 0968 85a8 0000020 0968 85a8 0fff 0fff 0964 85ba 0938 85a9 0000030 08ba 8571 085d 8559 07a1 8573 0736 8599 $chartthemes -platform linuxfb -plugin tslib QIconvCodec::convertToUnicode: using Latin-1 for conversion, iconv_open failed QIconvCodec::convertFromUnicode: using Latin-1 for conversion, iconv_open failed QFactoryLoader::QFactoryLoader() ignoring "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.2" since plugins are disabled in static buils QFactoryLoader::QFactoryLoader() ignoring "org.qt-project.Qt.QPlatformInputContextFactoryInterface" since plugins are disabled in static builds QFactoryLoader::QFactoryLoader() ignoring "org.qt-project.Qt.QGenericPluginFactoryInterface" since plugins are disabled in static builds QFactoryLoader::QFactoryLoader() ignoring "org.qt-project.Qt.QStyleFactoryInterface" since plugins are disabled in static builds