Meta tags:
description= Qt (Android, iOS, W10);
Headings (most frequently used words):
qt, app, creator, and, splash, screen, ios, your, world, summit, the, android, business, apps, create, storyboard, pro, project, at, stores, for, le, from, update, install, selection, back, next, article, home, overview, topics, xib, in, xcode, new, build, not, some, screenshots, to, edit, mobile, ekkes, example, devices, explore, bt, drawer, no, with, preferences, run, handles, conference, issues, workarounds, intro, current, settings, design, change, projectfile, clean, save, changes, git, deploy, test, changed, asset, catalog, icons, add, appicons, info, plist, yourproject, ignore, bluetooth, meet, ekke, conferences, thx, john, martin, download, btle, features, smartphones, tablets, discover, services, characteristics, heartrate, monitor, addimat, lock, manager, nfc, reader, open, source, qml, imports, ignores, taps, outside, monthgrid, onclicked, gets, events, release, getting, thousands, of, warnings, isonline, reliable, qncm, start, settingspath, working, directory, external, tools, manage, plugins, qtquickcontrols2, gallery, quick, controls, clone, my, examples, github, select, words, by, double, tap, overlap, while, scrolling, only, handle, visible, when, component, invisible, outdated, 2019, 2018, 11, projects, limits, howto, make, complex, real, life, translations, refresh, work, text, community, wiki, forum, lists,
Text of the page (most frequently used words):
the (271), and (169), you (95), for (92), app (90), from (73), this (65), ios (56), your (53), apps (50), mobile (48), with (45), new (43), can (43), are (38), all (38), now (30), #creator (30), some (30), project (30), android (29), here (29), also (28), text (28), #devices (26), nfc (26), business (25), see (24), using (24), screen (24), about (23), will (23), there (23), tap (23), select (22), splash (22), only (21), more (21), device (21), storyboard (21), like (20), print (20), development (19), into (19), first (19), xcode (19), file (19), have (18), get (18), not (18), services (17), then (17), but (17), example (17), selection (16), under (16), addimat (16), install (15), where (15), drawer (15), create (15), time (15), found (15), use (15), easy (14), thetextfield (14), png (14), run (14), open (14), was (14), reader (13), button (13), done (13), one (13), same (13), add (13), ekkes (13), xib (13), opens (12), visible (12), work (12), user (12), page (12), know (12), controls (12), always (12), start (12), store (12), btle (12), key (12), lock (12), name (11), loading (11), blog (11), window (11), share (11), tweet (11), width (11), inside (11), please (11), works (11), projects (11), build (11), pro (11), connect (11), tumblr (10), take (10), github (10), change (10), out (10), doesn (10), good (10), settings (10), default (10), external (10), bluetooth (10), most (10), info (10), comment (9), already (9), update (9), textarea (9), look (9), menu (9), while (9), conference (9), top (9), parent (9), double (9), without (9), 2017 (9), qtquick (9), qtquickcontrols2 (9), bin (9), that (9), working (9), howto (9), old (9), read (9), apple (9), used (9), help (9), world (9), service (9), characteristics (9), plist (9), com (8), set (8), textfield (8), workaround (8), bug (8), still (8), true (8), material (8), selectbymouse (8), something (8), make (8), different (8), should (8), don (8), tools (8), blackberry (8), files (8), current (8), because (8), available (8), last (8), iphone (8), part (8), values (8), custom (8), years (8), summit (8), appicon (8), mylaunchscreen (8), next (7), back (7), anchors (7), important (7), appwindow (7), need (7), qml (7), right (7), way (7), folder (7), running (7), developing (7), real (7), source (7), linguist (7), qtcreator (7), reachability (7), utility (7), data (7), value (7), height (7), keys (7), tablets (7), images (7), bundle (7), location (7), view (6), log (6), other (6), overview (6), focus (6), another (6), handles (6), find (6), layout (6), horizontalcenter (6), clear (6), onclicked (6), users (6), easier (6), copy (6), delete (6), many (6), want (6), issues (6), https (6), navigation (6), what (6), click (6), customers (6), after (6), echo (6), case (6), step (6), getting (6), events (6), framework (6), import (6), tag (6), led (6), play (6), heartrate (6), must (6), screenshot (6), greater (6), stores (6), logo (6), write (5), comments (5), site (5), dev (5), article (5), soon (5), becomes (5), has (5), active (5), icon (5), property (5), activefocus (5), word (5), give (5), insert (5), mode (5), outside (5), touch (5), try (5), rename (5), osx (5), macos (5), testing (5), unused (5), idea (5), tool (5), close (5), script (5), profilepath (5), check (5), doing (5), release (5), online (5), before (5), defined (5), src (5), monthgrid (5), imports (5), ekke (5), notifications (5), address (5), explore (5), hint (5), google (5), starting (5), complex (5), built (5), enterprise (5), xcassets (5), icons (5), 2019 (5), itunesartwork (5), manage (4), content (4), subscribed (4), subscribe (4), wordpress (4), account (4), field (4), when (4), buttoniconactive (4), qstr (4), row (4), placed (4), gets (4), scroll (4), does (4), setting (4), workarounds (4), support (4), installed (4), gallery (4), quick (4), error (4), listed (4), let (4), version (4), list (4), plugins (4), git (4), org (4), ekkescorner (4), execute (4), refresh (4), adding (4), looks (4), test (4), these (4), translations (4), preferences (4), yet (4), which (4), sources (4), besides (4), contents (4), installer (4), download (4), commercial (4), developers (4), prepare (4), develop (4), june (4), warnings (4), class (4), q_os_ios (4), break (4), endif (4), state (4), qtbug (4), even (4), opened (4), model (4), month (4), added (4), popup (4), end (4), tapping (4), leave (4), demo (4), documentation (4), red (4), above (4), battery (4), life (4), mac (4), disconnect (4), monitor (4), isn (4), cases (4), ipad (4), amazon (4), tablet (4), conferences (4), thx (4), talk (4), screenshots (4), thing (4), tips (4), tricks (4), limits (4), october (4), 1024 (4), asset (4), catalog (4), appiconset (4), image (4), constraints (4), launch (4), required (3), bar (3), bb10 (3), home (3), topics (3), invisible (3), handle (3), scrolling (3), customized (3), updated (3), alias (3), placeholdertext (3), pane (3), words (3), textclearbutton (3), textdonebutton (3), focuspolicy (3), clickfocus (3), imagename (3), else (3), area (3), long (3), toggle (3), cut (3), just (3), move (3), developed (3), expected (3), brings (3), bottom (3), examples (3), moving (3), search (3), connected (3), qmake (3), tab (3), application (3), verify (3), restart (3), unwanted (3), per (3), created (3), daten (3), sdk (3), adb (3), shell (3), enbw (3), pegelmeter (3), commands (3), deployed (3), shortcut (3), ide (3), trick (3), configuration (3), clang_64 (3), access (3), looking (3), changed (3), directory (3), settingspath (3), license (3), perhaps (3), updating (3), tested (3), customer (3), great (3), pragma (3), switch (3), status (3), notreachable (3), networkinfo (3), append (3), internet (3), disable_warning (3), label (3), fit (3), grid (3), well (3), fakepopup (3), pages (3), below (3), between (3), would (3), drag (3), normaly (3), structure (3), magnetic (3), uses (3), buzzer (3), allows (3), enter (3), mapping (3), attention (3), hid (3), shows (3), special (3), level (3), detail (3), types (3), nearby (3), fire (3), helps (3), discover (3), again (3), pixel (3), smartphones (3), integrated (3), finally (3), via (3), chip (3), happy (3), probably (3), features (3), ipads (3), phones (3), john (3), martin (3), berlin (3), session (3), profsys (3), native (3), remove (3), json (3), conference2go (3), xxx (3), 2018 (3), changes (3), clean (3), dir (3), tree (3), centered (3), design (3), blogs (3), email (2), sign (2), former (2), older (2), intro (2), 58700 (2), component (2), overlap (2), keyboard (2), two (2), thetextrow (2), signal (2), int (2), minheighttextpane (2), doubletapisdefault (2), textpane (2), fillwidth (2), goes (2), textselecttogglebutton (2), code (2), showtoast (2), switched (2), off (2), textarearow (2), remarkstextrow (2), tourdetail (2), remark (2), comes (2), makes (2), disappear (2), false (2), press (2), position (2), single (2), paste (2), both (2), them (2), around (2), less (2), buttons (2), place (2), contains (2), having (2), hopefully (2), problems (2), replace (2), taps (2), community (2), follow (2), series (2), best (2), details (2), link (2), kits (2), kit (2), debug (2), hit (2), desktop (2), style (2), config (2), ways (2), system (2), workspace (2), stop (2), qtproject (2), those (2), androidforwork (2), unfortunately (2), touches (2), trigger (2), date (2), path (2), finished (2), automatically (2), lupdate (2), lrelease (2), strings (2), translate (2), english (2), language (2), cannot (2), configuring (2), trouble (2), newer (2), ones (2), ndk (2), locations (2), directories (2), changing (2), german (2), any (2), save (2), _qt_sdks (2), sdk_590 (2), parameter (2), spaces (2), selected (2), downloads (2), steps (2), www (2), startups (2), small (2), installing (2), each (2), void (2), flags (2), connection (2), states (2), qdebug (2), init (2), statuschanged (2), newstatus (2), include (2), reachabilitylistener (2), better (2), qncm (2), could (2), mnetworkconfigmanager (2), qnetworkconfigurationmanager (2), isonline (2), thousands (2), mouseclick (2), mypage (2), console (2), day (2), today (2), color (2), pressed (2), foreground (2), mouse (2), fill (2), mousearea (2), meantime (2), ignores (2), dimmed (2), big (2), extra (2), went (2), newest (2), ids (2), lets (2), knows (2), progress (2), ignore (2), manager (2), selecting (2), string (2), hex (2), uuid (2), known (2), scanner (2), beacons (2), high (2), register (2), miss (2), ios11 (2), tags (2), identify (2), persons (2), fast (2), integrate (2), parts (2), master (2), jax (2), meet (2), heavy (2), port (2), provides (2), covers (2), missed (2), http (2), weeks (2), workflow (2), talking (2), roland (2), complicated (2), care (2), outbound (2), inbound (2), sessions (2), year (2), since (2), very (2), react (2), later (2), performance (2), size (2), 1024x1024 (2), filename (2), lines (2), edit (2), projectfolder (2), sizes (2), qtmob (2), missing (2), room (2), speakers (2), schedule (2), sourcecode (2), c2gqtws_x (2), qtws (2), cache (2), deploy (2), enjoy (2), other_files (2), aspect (2), course (2), extension (2), qtc (2), enough (2), thought (2), screens (2), april (2), 2020 (2), outdated (2), website, collapse, subscriptions, report, privacy, join, subscribers, containing, bugs, showing, sample, qtworldsummit, rowlayout, 140, bool, elevation, minimumheight, mark, otherwise, endless, wrapping, wrapmode, wordwrap, column, spacing, minimumwidth, length, textselectbutton, emit, implementation, remarks, return, line, ontextchanged, ondone, ready, editing, clipboard, appears, cursor, notice, handlers, become, appear, side, distinguish, tell, fingers, textareas, waiting, fine, textfields, flickable, difficult, impossible, confused, befixed, supports, enabled, march, wiki, forum, lists, appbus, category, tabbar, swipeview, stackview, clone, appetizers, congrats, impression, qtcreatorbug, 18380, duplicate, symbolic, fix, directly, team, cool, feature, deploying, qqc2, styles, colors, welcome, correct, configured, easiest, uncheck, repos, asked, repo, gittower, disable, runs, _android, macosx, platform, force, qt5, bindings, qtactivity, management, systems, uem, touching, wanted, updates, folders, executable, exist, marked, translatable, translation, compiles, environment, linguist_de, languages, i18n, comfortable, r10e, gradle, devcies, macbookpro, multiple, versions, collision, named, exec, qtc_settings, editor, instances, launching, wait, accept, components, installation, pathes, offer, plan, post, licensing, independent, faq, downloading, maintenance, fresh, beta, going, esp, finding, reported, solved, situations, static, printreachabilityflags, scnetworkreachabilityflags, const, char, kshouldprintreachabilityflags, suppress, thename, got, parameters, ever, objectivec, reachable, reachableviawifi, wifi, reachableviawwan, informations, startup, dataserver, networkstatus, offline, method, yourclass, public, qobject, private, reachabilitydelegate, definition, libs, systemconfiguration, objective_sources, classes, bugreport, attachment, including, checkingnetwork, 56151, rely, had, reporting, en2, airplane, little, observing, configurations, filter, utun0, friend, reliable, 61587, gcc_warn_64_to_32_bit_conversion, qmake_mac_xcode_settings, jake, petroules, noticed, strange, behavior, applicationwindow, 640, 480, title, gridlayout, columns, rows, fillheight, delegate, daylabel, font, bold, opacity, accent, minimumpointsize, fontsizemode, horizontalalignment, alignhcenter, verticalalignment, alignvcenter, background, rectangle, centerin, min, radius, primary, math, tapped, hello, 61585, clicked, datepicker, mydrawer, onopened, onabouttohide, block, inserting, und, ugly, classified, fixed, 61581, underlying, accident, problem, closes, control, branch, wrong, technical, point, sure, accessing, properties, replaced, ekkesbtleexample, stay, tuned, explain, holding, welcomes, attendee, map, green, notifies, disconnected, levels, plug, configure, received, server, login, credentials, simulate, against, rest, local, database, plugged, 307630, every, tries, rid, message, similar, subscribes, header, initialize, characteristic, permissions, displays, gatt, sometime, human, readable, analyzed, logic, collected, interact, exactly, wit, option, rssi, discovers, searching, theblue, currently, supported, learn, deal, mini2, hd8, csg, conencted, solution, goggle, blocked, acces, past, partly, ndef, records, etc, attendees, trainings, keyboards, virtual, disappears, locks, usb, rs232, unique, mapped, switching, secure, teams, sharing, seen, restaurants, waiters, cash, included, compare, happens, existing, workbench, main, goal, devs, waiter, magentic, wondering, gray, behind, workarounding, follows, rules, thank, helped, cascades, woolley, murray, germany, speak, 2nd, loaded, analyzing, functionality, own, divide, manages, detailed, needed, enables, remembers, auto, errors, signals, robust, issue, notify, finds, instead, others, able, decided, avilable, doc, qtbluetooth, index, html, exploring, thanks, enterprises, smbs, streamline, powered, foward, munich, qtworldsummit2017, aspects, how, wienen, ceo, sys, success, mean, lazy, glad, present, knowing, employees, successfully, their, daily, stationär, ambulant, applications, hidden, reason, why, christian, feldbacher, through, yes, exists, 1990, embedded, qtwidgets, complete, experiences, say, performant, stable, challenges, platforms, windows, blackberry10, frameworks, angular, ionic, xamarin, decision, months, reach, down, instable, solutions, smp, focused, temporary, intermediate, safe, gitignore, asset_catalog_compiler, suddenly, root, idiom, marketing, scale, compile, xcode9, entry, points, second, tells, prefixed, qmake_asset_catalogs, pwd, qmake_asset_catalogs_app_icon, yourproject, cfbundleiconfile, cfbundleicons, appicons, worked, safari, firefox, instructions, needs, onto, recommended, free, jakepetroules, cpluke, worry, provided, cfbundleiconname, xxxxxxxxxxxxxxx, supply, provide, information, dev10510b1f7, training, qtws2019, tokyo, venue, until, published, sometimes, uploading, appstore, reboot, detect, takes, discussion, uuups, target, projectfile, orientations, forget, dotted, enable, directions, guarantee, space, borders, left, remember, nothing, lost, stretched, resize, fits, defaults, controller, scene, saved, anything, launchscreen, avoid, filenames, building, wants, general, generated, guide, simple, show, extremely, infos, mentioned, didn, dummies, useful, maciej, węglarczyk, grecko, developer, upload, export, fortunately, gives, wwdc, announced, requirement, over, much, implement, put, todo, forgot, cmake, cover, may, 2024, goods, receipt, allaboutmyb, 101, teatimer, jam, sercar10, servicecars, opendataspace, ekkesexpresscharts, keepass, bbm, meetings, drives, mobility, marketplace, classic, passport, computing, invocation, maps, workshops, introduction, w10,
Text of the page (random words):
reachability class see also qtbug 56151 and this great article about checkingnetwork status in ios here s my workaround by including reachability download sources from attachment to bugreport copy reachability classes to project ios src change your pro libs framework systemconfiguration ios objective_sources ios src reachability mm ios src reachabilitylistener mm add this include if defined q_os_ios include ios src reachabilitylistener h endif change class definition class yourclass public qobject if defined q_os_ios private utility reachabilitydelegate endif add a statuschanged method if defined q_os_ios void dataserver statuschanged utility networkstatus newstatus if newstatus utility notreachable offline else online endif now you re getting events if online state is changing on ios devices at startup you can check the current state qdebug i o s reachability init is o n l i n e status utility notreachable if you need some more informations you can check for different states if defined q_os_ios switch status case utility notreachable networkinfo append tr internet not reachable break case utility reachableviawifi networkinfo append tr wifi internet connection break case utility reachableviawwan networkinfo append tr mobile data internet connection break default break endif this was the first time ever i m using a objectivec class i got warnings from reachability mm about unused parameters you can suppress these warnings by adding pragma unused thename static void printreachabilityflags scnetworkreachabilityflags flags const char comment pragma unused flags pragma unused comment if kshouldprintreachabilityflags have tested reachability under different situations at customer site and it s working great updating from 5 8 to 5 9 was easier and has less issues as my last update from 5 7 to 5 8 i ll tweet ekkescorner if finding more issues while working on my apps also i have to check all the issues i reported from 5 8 which ones are solved and which are still open back install qt 5 9 next article qt creator intro home overview topics tweet share on tumblr print opens in new window print like loading in install qt mobile development qt for mobile install qt 5 9 june 23 2017 1 comment qt 5 9 release blog from qt qt quick controls 2 blog from qt this blog series is about the new qt quick controls 2 to develop mobile apps for android and ios before going on you should have read my blog esp on prepare for android ios and prepare devices besides qt 5 9 you ll also get a new qt creator 4 3 perhaps you already have an older version of qt already installed you can use the maintenance tool to update i m always doing a fresh install for each beta rc or release before downloading and installing you should know if you want to install the open source or commercial version of qt for application development please take a look at qt faq s and also my blog post about licensing and the new license for small startups and independent developers i m using the commercial version for startups see qt s offer here https www qt io start up plan read more about open source vs commercial also in my blog about install qt 5 6 here are my steps to download and install qt 5 9 commercial install qt 5 9 go to your qt account downloads and select the qt online installer see available downloads i selected the macos online installer here s my download on osx double click to install log into your account select the folder where to install it s a good idea to use installation pathes without spaces see also here as next select your components accept the license and wait for the installer if installer finished i m not launching qt creator yet start qt creator with settingspath all qt creator instances by default share the settings having the new qt creator 4 3 and old 4 2 1 4 0 2 3 6 2 using the same settings is no good idea also i want to use different working directories for my qt 5 6 5 7 5 8 and the new qt 5 9 release you can start qt creator with parameter settingspath here s howto do this from osx search for the qt creator app from qt 5 9 and do a right click on the app here s the content rename qt creator to something like qt creator bin from a text editor create a script to execute the qt creator bin with a parameter something like this bin sh exec daten _qt_sdks sdk_590 qt creator app contents macos qt creator bin settingspath daten _qt_sdks sdk_590 qtc_settings save this file named qt creator besides the qt creator bin now you can start qt creator which will execute the script qt creator will create the qtproject folder to store all the configuration settings now you can start multiple qt creator versions without any collision qt creator 4 3 at first i m changing qtcreator s language on my german macbookpro to english and restart qt creator preferences working directory set your working directory for 5 9 if you are using different directories as i m doing qt creator preferences android take a look at your devcies android preferences select your sdk and ndk locations and check gradle important don t use a newer ndk please always use r10e because of some trouble with the newer ones qt creator external tools translations i m developing business apps and business apps always need support of languages i18n configuring the external tools for linguist qt s tool to translate text from your qml and c sources will make it more comfortable as first step we ll add the linguist app you ll find the linguist at 5 8 clang_64 bin i like to use tools in english but the language cannot be changed yet for linguist so the trick is to rename the translations file which in my case is 5 9 clang_64 translations linguist_de qm under preferences environment external tools there already exist access to commands for lupdate and lrelease lupdate is looking for the strings you marked as translatable and to create or update the translation files app ts using linguist or external tools you can then translate the strings lrelease compiles these translations from ts into qm only qml files will be deployed to your device i found out that the default configuration doesn t work on android and ios so i m using the executable from 5 9 clang_64 bin test if linguist will start from external tools linguist should start it s a good idea to use a shortcut refresh pro adding new qml files to a project doesn t refresh the project view automatically open the pro change something close pro updates project folders i wanted to do this by a shortcut the trick is to execute a script to touch the pro file for osx the script looks like this bin sh external tool for qt creator touches the projects pro file to trigger an ide refresh after adding new files echo echo touches the projects pro file to trigger an ide refresh after adding new files echo profilepath 1 if f profilepath then now date y m d h m echo touching file on path profilepath now setting the current time to now touch mt now profilepath echo finished else echo error file under give path profilepath not found fi and here s the shortcut run android for work apps some of my mobile business apps are installed on customers mobile management systems blackberry uem 12 6 or so and deployed as androidforwork apps see also my blog here unfortunately qt creator doesn t support setting the user id so after debug run on device i have to stop the deployed app using the default user and start the same app for another androidforwork user i created external commands for those projects and execute from external tools here s an example script on osx bin sh external tool for qt creator runs the app as work app cd daten _android android sdk macosx platform tools adb shell pm clear user 0 org ekkescorner enbw pegelmeter dev doesn t close the app adb shell am force stop user 0 org ekkescorner enbw pegelmeter dev adb shell am start user 10 n org ekkescorner enbw pegelmeter dev org qtproject qt5 android bindings qtactivity and here s the external tool i created manage qt creator plugins qt creator has many plugins installed as default it s a good idea to disable plugins you re not using per ex i manage all my git repos using gittower and i don t want always to be asked about my source repo open the list of qt creator plugins then uncheck all unwanted version controls you can do the same with the unused devices restart qt creator create a new qtquickcontrols2 project now verify if all is correct configured easiest way is to create a new qtquickcontrols2 app and let it run on your devices from welcome tab click on new project and select application qtquickcontrols2 application give it a name and create in your workspace select the build system qmake select the qqc2 style i m using the material style this will create a config file there are other ways to set styles and colors select the kits you need i m developing mobile apps for android and ios and always testing on real devices also for testing without deploying on devices i always add the desktop kit qt 5 9 brings a cool new feature for ios you can select the development team directly from project settings for ios now try the different kits select the kit the debug build and hit run running on a connected android device the devices should be listed same is for ios you should see your connected devices i not only updated from qt 5 8 to qt 5 9 but also osx 10 11 6 to macos 10 12 5 xcode from 8 2 to 8 3 3 ios from 10 2 1 to 10 3 2 and my first try to run on an ios device brings this error you can easy fix this go to xcode 8 3 3 right click to see the content duplicate the 10 3 1 folder and rename to 10 3 or create a symbolic link see more details at qtcreatorbug 18380 gallery qt quick controls 2 best way to get a first impression of all the new qtquick controls 2 is to run the quick controls 2 gallery app from overview examples search for gallery and select the right one and run the gallery app congrats you have installed qt 5 9 now you can try out all the new controls if you already have projects using qt 5 8 take a look what s good to know if moving projects from 5 8 to 5 9 new to qt for mobile here are some more appetizers clone my examples from github and run first app with one page stackview swipeview tabbar bottom navigation drawer navigation please follow my blog series https appbus wordpress com category qt for mobile overview back qt community wiki forum lists next article issues and workarounds 5 8 5 9 home overview topics tweet share on tumblr print opens in new window print like loading in install qt mobile development qt for mobile text selection handles qt 5 8 march 25 2017 6 comments qt 5 8 brings some more support of text selection handles but there are still also some problems text selection handles are important to make it easy on touch devices to insert text copy text replace text or cut text with 5 7 single taps to get a handle to move the insert position around already works select words by double tap qt 5 8 also supports double tap to select words but it doesn t work as expected this selection mode will only be enabled if you set selectbymouse true on textfield or textarea this works fine with textfields but having textarea inside flickable makes scrolling difficult or impossible qt doesn t know if you want to change the selection or scroll inside the textfield or scroll the page users will be confused and it s not easy to know where outside the textfield scrolling works hopefully in qt 5 9 this will befixed and double tap works without setting selectbymouse one of my app contains many textareas and users are waiting for word selection mode so i developed some workarounds for 5 8 to make it easier to distinguish where s the textarea i placed the textarea on top of a pane now you can tell your user to scroll the page place fingers outside the textarea as soon as textarea gets active focus 3 buttons will appear on the right side clear toggle selection mode done as soon as the user does a double tap on a word both text selection handlers become visible and it s easy to move them around to select more or less also please notice on top a menu to select all cut copy and paste on ios this is different at first do the double tap to select a word then please do a long press on the selection to get a cut copy paste delete menu just on top of the selection single tap does work with or without setting selectbymouse to insert from clipboard do a long press insert menu appears on top of cursor position tap on the toggle button to set selectbymouse false to make it easier to scroll also while inside the textfield when you re ready with text editing tap on the done button done button gets focus and all handles disappear also done and toggle button disappear as long as there s some text the clear button makes it easy to clear the field here s the workaround i placed all of this into textarearow qml then it will be easy to change when 5 9 comes out textarearow id remarkstextrow placeholdertext qstr your remarks return for new line text tourdetail remark ontextchanged tourdetail remark text ondone do something set active focus to another field or so remarkstextrow and here s the implementation rowlayout id thetextrow signal done property alias text thetextfield text property alias placeholdertext thetextfield placeholdertext property alias textfield thetextfield property int minheighttextpane 140 property bool doubletapisdefault true pane id textpane anchors top parent top material elevation 6 layout fillwidth true layout minimumheight thetextfield activefocus minheighttextpane 60 textarea id thetextfield qt 5 8 only if set to true we can mark words by double tap selectbymouse doubletapisdefault important otherwise text goes endless without wrapping width parent width text wrapmode textarea wordwrap thetextfield text pane column spacing 0 anchors top textpane top layout minimumwidth textclearbutton visible textselecttogglebutton visible textdonebutton visible 48 0 buttoniconactive id textclearbutton anchors horizontalcenter parent horizontalcenter visible thetextfield activefocus thetextfield text length focuspolicy qt clickfocus imagename clear png onclicked thetextfield text textclearbutton buttoniconactive id textselecttogglebutton anchors horizontalcenter parent horizontalcenter visible thetextfield activefocus focuspolicy qt clickfocus imagename code png onclicked thetextfield selectbymouse thetextfield selectbymouse if thetextfield selectbymouse appwindow showtoast qstr word selection by double tap switched on else appwindow showtoast qstr word selection by double tap switched off textselectbutton buttoniconactive id textdonebutton anchors horizontalcenter parent horizontalcenter visible thetextfield activefocus focuspolicy qt clickfocus imagename done png onclicked we only need the focus emit signal so users can give another field the activefocus thetextrow done textdonebutton row w text area buttoniconactive is a customized button showing icon you ll find all of this in my sample apps at github i also hav...
|